package com.numberone.system.domain;


import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商品具体表 goods_detail
 * 
 * @author numberone
 * @date 2020-09-28
 */
public class GoodsDetail extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	private Long id;
	/** 商品id */
	private Long goodsId;
	/** 尺码/大小 */
	private String size;
	/** 商品规格 */
	private String specification;
	/** 商品图片 */
	private String img;
	/** 商品颜色描述 */
	private String imgInfo;
	/** 商品价格 */
	private BigDecimal price;
	/** 商品会员价 */
	private BigDecimal vipPrice;
	/** 商品折扣价 */
	private BigDecimal disPrice;
	/** 商品发布时间 */
	private Date publishTime;
	/** 商品库存 */
	private Integer stock;
	/** 重量 */
	private Integer weight;
	/** 商品状态 */
	private Integer status;

	private List<GoodDetailList> imgs;

	private Goods goods;

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public String getImgInfo() {
		return imgInfo;
	}

	public void setImgInfo(String imgInfo) {
		this.imgInfo = imgInfo;
	}

	public List<GoodDetailList> getImgs() {
		return imgs;
	}

	public void setImgs(List<GoodDetailList> imgs) {
		this.imgs = imgs;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setSize(String size) 
	{
		this.size = size;
	}

	public String getSize() 
	{
		return size;
	}
	public void setSpecification(String specification) 
	{
		this.specification = specification;
	}

	public String getSpecification() 
	{
		return specification;
	}
	public void setImg(String img) 
	{
		this.img = img;
	}

	public String getImg() 
	{
		return img;
	}
	public void setPrice(BigDecimal price) 
	{
		this.price = price;
	}

	public BigDecimal getPrice() 
	{
		return price;
	}
	public void setVipPrice(BigDecimal vipPrice) 
	{
		this.vipPrice = vipPrice;
	}

	public BigDecimal getVipPrice() 
	{
		return vipPrice;
	}
	public void setDisPrice(BigDecimal disPrice) 
	{
		this.disPrice = disPrice;
	}

	public BigDecimal getDisPrice() 
	{
		return disPrice;
	}
	public void setPublishTime(Date publishTime) 
	{
		this.publishTime = publishTime;
	}

	public Date getPublishTime() 
	{
		return publishTime;
	}
	public void setStock(Integer stock) 
	{
		this.stock = stock;
	}

	public Integer getStock() 
	{
		return stock;
	}
	public void setWeight(Integer weight) 
	{
		this.weight = weight;
	}

	public Integer getWeight() 
	{
		return weight;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("size", getSize())
            .append("specification", getSpecification())
            .append("img", getImg())
            .append("price", getPrice())
            .append("vipPrice", getVipPrice())
            .append("disPrice", getDisPrice())
            .append("publishTime", getPublishTime())
            .append("stock", getStock())
            .append("weight", getWeight())
            .append("status", getStatus())
            .toString();
    }
}
